import Header from "./header";
import Layout from "./layout";
import Footer from "./footer";
import CardBase from "./cardBase";
import Count from "./count";
import Table from './table';
import Query from './query';
import Authority from './auth';
import ReadOnlyForm from './readonly-form';
import FooterButton from './footer-button';

const components = [
  Footer, Header, Layout, CardBase, Count, Table, Query, Authority, ReadOnlyForm, FooterButton
];

const install = function (Vue) {
  if (install.installed) return
  components.map(component => Vue.component(component.name, component))
}

export default {
  install,
  Footer, Header, Layout, CardBase, Count, Table, Query, Authority, ReadOnlyForm, FooterButton
}
